/*
 * CanvasStory.h
 *
 *  Created on: 2013-1-26
 *      Author: heqiu
 */

#ifndef CANVASSTORY_H_
#define CANVASSTORY_H_

#include "Guud.h"
using namespace guud;

void story_cycle(int32_t iXUnit, int32_t iYUnit, void * pData);
void story_cycle_screen(GuudPoint & gpUnit, GuudPoint & gpScreen, void * pData);
class CanvasStory: public GuudMap {
public:
	int32_t m_iStoryNo;
	CanvasMovingEvent m_MovingEvent;
	GuudRect m_screen_rect;
	CanvasStory(uint32_t uiShortUnit, uint32_t uiLongUnit,
			uint32_t uiUnitPixel);
	void draw();
	void init();
	void handleEvent(GuudEvent &stEvent);
};

#endif /* CANVASSTORY_H_ */
